#include "bbullet.h"

class bRigidBody
{
public:
	bRigidBody(bBullet* bullet, CSTyp typ, float mass, int playerControlled, bVector3* size, bVector3* pos);
	~bRigidBody();

	void removeFromWorld(bBullet* bullet);
	void getPosition(bVector3* vec);
	void setPosition(bVector3* pos);
	void getRotation(bQuaternion* quat);
	void translate(float x, float y, float z);
	void isKinematic();
	void disableDeactivation();
	void pitch(float x);
	void yaw(float y);
	void roll(float z);

	// b3d style
	bVector3* bb_getPosition();
	bQuaternion* bb_getRotation();

protected:
	btCollisionShape* colShape;
	btDefaultMotionState* motionState;
	btRigidBody* rigidBody;
};